This can be useful now that we're splitting some items from the widget.
{
return GTK_OPEN_WITH_GET_IFACE (self)->get_app_info (self);
}
+
+void
+gtk_open_with_refresh (GtkOpenWith *self)
+{
+ GTK_OPEN_WITH_GET_IFACE (self)->refresh (self);
+}
GAppInfo * gtk_open_with_get_app_info (GtkOpenWith *self);
gchar * gtk_open_with_get_content_type (GtkOpenWith *self);
+void gtk_open_with_refresh (GtkOpenWith *self);
G_END_DECLS
}
else
{
- _gtk_open_with_widget_refilter (GTK_OPEN_WITH_WIDGET (self->priv->open_with_widget));
+ gtk_open_with_refresh (GTK_OPEN_WITH (self->priv->open_with_widget));
}
g_object_unref (online);
return app;
}
+static void
+gtk_open_with_dialog_refresh (GtkOpenWith *object)
+{
+ GtkOpenWithDialog *self = GTK_OPEN_WITH_DIALOG (object);
+
+ gtk_open_with_refresh (GTK_OPEN_WITH (self->priv->open_with_widget));
+}
+
static void
gtk_open_with_dialog_constructed (GObject *object)
{
gtk_open_with_dialog_iface_init (GtkOpenWithIface *iface)
{
iface->get_app_info = gtk_open_with_dialog_get_app_info;
+ iface->refresh = gtk_open_with_dialog_refresh;
}
static void
GTypeInterface base_iface;
GAppInfo * (* get_app_info) (GtkOpenWith *object);
+ void (* refresh) (GtkOpenWith *object);
};
-void _gtk_open_with_widget_refilter (GtkOpenWithWidget *self);
-
#endif /* __GTK_OPEN_WITH_PRIVATE_H__ */
g_app_info_remove_supports_type (info, self->priv->content_type, NULL);
}
- _gtk_open_with_widget_refilter (self);
+ gtk_open_with_refresh (GTK_OPEN_WITH (self));
}
static GtkWidget *
}
static void
-gtk_open_with_widget_iface_init (GtkOpenWithIface *iface)
-{
- iface->get_app_info = gtk_open_with_widget_get_app_info;
-}
-
-void
-_gtk_open_with_widget_refilter (GtkOpenWithWidget *self)
+gtk_open_with_widget_refresh (GtkOpenWith *object)
{
-
- gtk_open_with_widget_ensure_show_more_button (self);
+ GtkOpenWithWidget *self = GTK_OPEN_WITH_WIDGET (object);
if (self->priv->program_list_store != NULL)
{
}
}
+static void
+gtk_open_with_widget_iface_init (GtkOpenWithIface *iface)
+{
+ iface->get_app_info = gtk_open_with_widget_get_app_info;
+ iface->refresh = gtk_open_with_widget_refresh;
+}
+
GtkWidget *
gtk_open_with_widget_new (const gchar *content_type)
{